<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.*"%>
<%@include file="/common/common.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
		<script language="javascript" src="/script/public.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="/black_index/Themes/Default/main.css" rel="stylesheet" type="text/css" />
<script>
function Dis()
{parent.document.getElementById("Fbody").cols="174,12,*"

}
</script>
</head>
<body onload="Dis()">
<div class="topnav">现在的位置：新闻管理&gt;新闻管理</div>
<form action="/news.action?size=15" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class=" dataTable" >
		<tr>
		  
			<th align="right" >搜索栏目新闻：
				 <input type="text" name="name" id="secName" readonly="readonly" value="${name}">
    			 <input type="hidden" name="news.suuid" id="secuuid" value="${news.suuid}">
			   	<input type="hidden" name="path" id="secPath" value="${path}">			
			    &nbsp;
				<input name="button3" type="submit" class="seach" onclick="/newSec.action?newSec.path=0000&select=true;" value="查询" />
			</th>
			<th width="1000"><a href="#" onclick="openWin('/newSec.action?newSec.path=0000&select=true','selectparties',800,600,1);" class="share">共享</a> </th>
			
		</tr>
	</table>
</form>
<form action="/news!searchBy.action?size=15" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class=" dataTable" >
<th align="right" >按名称查找：　 
<input type="text" name="searchname">　 <input name="button3" type="submit" class="seach" value="查询" />
</th>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td align="right">&nbsp;&nbsp;
			<input class="btn" accesskey="s" onclick="openWin('/news!addNewsInput.action','addace',900,690);" type="button" value="添加新闻" />
			&nbsp;&nbsp;
			<!--INPUT class="button3" accessKey="m" onclick="SendMail()" type="button" value="发送邮件">&nbsp;&nbsp;-->&nbsp;</td></tr>
</table>
<font face="宋体">
<table width="100%" border="0" align="Justify" cellpadding="0" cellspacing="0" rules="all" class="dataTable" id="WGrid_DG">
	<tr align="center" >
		<th align="center" style="width:5%;" title="排序字段为：合约编号"><font face="宋体">序号</font></th>
		<th align="center" style="width:25%;" title="排序字段为：合约编号">新闻标题</th>
		<th align="center" style="width:15%;" title="排序字段为：客户简称">发布时间</th>
		<th align="center" style="width:10%;" title="排序字段为：所属行业">发布人</th>
		<th align="center" style="width:10%;" title="排序字段为：交易过">所属栏目</th>
		<th align="center" style="width:5%;">查看</th>
		<th align="center" style="width:5%;">编辑</th>
		<th align="center">删除</th>
		<th align="center">点击率</th>
		<th align="center">置热</th>
		<th align="center">取消置热</th>
	</tr>
	<%Date date = new Date();
		   request.setAttribute("d",date);
		 %>
	<c:set var="e" value="${1-1}"></c:set>
	<c:if test="${!empty pm}">
	<c:forEach items="${pm.datas}" var="news">
	<tr onmouseover="objColor=this.style.backgroundColor;this.style.backgroundColor='#FFF0CC'" onmouseout="this.style.backgroundColor=objColor" style="color:#000066;">
		<td><font face="宋体">${e+1 }</font></td>
		<td>
		${news.ferCaption}
		<c:if test="${news.auditTime >= d}"> <font color="red">${news.ferCaption}</font></c:if>
		</td>
		<td><fmt:formatDate value="${news.lastTime}" type="date"
									dateStyle="full" /></td>
		<td>${news.lastAuthor}</td>
		<td>${news.newSection.caption}</td>
		<td><a href="#" onclick="openWin('/news!searchNews.action?news.uuid=${news.uuid}','addace',600,400,1);">查看</a></td>
		<td><a href="#" onclick="openWin('/news!updateNewsInput.action?news.uuid=${news.uuid}','addace',900,690);" class="edit">编辑</a></td>
		<td align="center"><a href="#" onclick="del('/news!delNews.action?news.uuid=${news.uuid}');" class="del">删除</a></td>
        <td>${news.item.code}</td>
         <td><a href="#" onclick="openWin('/news!addNewsHot.action?suuid=${news.uuid}','addace',200,400);">置热</a></td>
         <td><a href="#" onclick="openWin('/news!downHot.action?suuid=${news.uuid}','addace',200,400);">取消置热</a></td>
	</tr>	
	<c:set var="e" value="${e+1}"></c:set>
		</c:forEach>
				</c:if>
				<!-- 在列表数据为空的时候，要显示的提示信息 -->
				<c:if test="${empty pm}">
					<tr>
						<td colspan="7">
							没有找到相应的记录
						</td>
					</tr>
				</c:if>
</table>

<table>
							<c:forEach items="${piclist}" var="pls">
								<tr>
								<td><input type="radio" name="pic" id="pic" value="${pls.path}" onclick="givevalue(${pls.turname});" /></td>
								<td><img src="${pls.path}" /></td>
								</tr>
							</c:forEach>
							</table>


</font>
	<pg:pager url="/news!searchBy.action" items="${pm.total }" export="currentPageNumber=pageNumber" maxPageItems="15">
								<pg:param name="size" value="15"/>
								<pg:first>
									<a href="${pageUrl }">首页</a>
								</pg:first>
								<pg:prev>
									<a href="${pageUrl }">前一页</a>
								</pg:prev>
								<pg:pages>
									<c:choose>
										<c:when test="${currentPageNumber eq pageNumber }">
											<font color="red">${pageNumber }</font>
										</c:when>
										<c:otherwise>
											<a href="${pageUrl }">${pageNumber }</a>
										</c:otherwise>
									</c:choose>
								</pg:pages>
								<pg:next>
									<a href="${pageUrl }">后一页</a>
								</pg:next>
								<pg:last>
									<a href="${pageUrl }">最后一页 </a>
								</pg:last>
							</pg:pager>
</body>
</html>
